package in.co.codedoc.rpc;

import java.util.ArrayList;

public class ResultPage<T>
{
	public ArrayList<T> GetEntries()
	{
		return entries;
	}
	
	public int GetTotalEntries()
	{
		return totalEntries;
	}
	
	public ResultPage<T> SetTotalEntries(int totalEnties)
	{
		this.totalEntries = totalEnties;
		return this;
	}
	
	public ResultPage<T> SetEntries(ArrayList<T> entries)
	{
		this.entries = entries;
		return this;
	}
	
	private int totalEntries = 0;
	private ArrayList<T> entries = new ArrayList<T>();
}
